<template>
	<view class="mine">
		<!-- 状态栏 -->
		<!-- #ifdef APP-PLUS -->
			<view class="status_bar">  
			    <view class="top_view"></view>  
			</view>
		<!-- #endif -->
		<mineBox :mineInfo="mineInfo" :mineInfoList="mineInfoList" :mineCensus="mineCensus"   ></mineBox>
		<view class="warp">
			<view class="public">
				<titleBox :publictitle="mineTasteTitle"></titleBox>
				<Taste :mineTaste="mineTaste"></Taste>
			</view>
			<view class="public">
				<titleBox :publictitle="mineRewardTitle"></titleBox>
				<Reward :mineReward="mineReward"></Reward>
			</view>
		</view>
	</view>
</template>
<script>
	import titleBox from '@/components/headTitle/index.vue'
	import mineBox from '@/components/mine/index.vue'
	import Taste from '@/components/mineTaste/index.vue'
	import Reward from '@/components/mineReward/index.vue'
	export default {
		components: {
			titleBox,
			mineBox,
			Taste,
			Reward
		},
		data() {
			return {
				mineInfo:[],
				mineInfoList:[],
				mineCensus:[],
				mineTasteTitle:[],
				mineTaste:[],
				mineRewardTitle:[],
				mineReward:[]
			}
		},
		onLoad() {
			this.personal();
			this.infolist();
			this.census();
			this.tasteTitle();
			this.taste();
			this.RewardTitle();
			this.Reward();
		},
		methods: {
			personal(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineInfo','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineInfo = res.personal;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			infolist(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineInfoList','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineInfoList = res.infolist;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			census(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineCensus','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineCensus = res.census;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			tasteTitle(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineTasteTitle','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineTasteTitle = res.publicData;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			taste(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineTaste','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineTaste = res.tasteData;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			RewardTitle(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineRewardTitle','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineRewardTitle = res.publicData;
				}).catch(err => {
					console.log('请求失败')
				})
			},
			Reward(){
				this.$request('mock/93c1b8865170438476e406a41e3fdf37/studynotes/mineReward','GET').then(res => {
					console.log('返回数据', res)// 打印调用成功回调
					this.mineReward = res.rewardData;
				}).catch(err => {
					console.log('请求失败')
				})
			},
		}
	}
</script>

<style  lang="scss">
	@import "../../icon/iconfont.css";
</style>
